import { createDiscreteApi, darkTheme, lightTheme } from 'naive-ui';
export default (theme = 'light') => {
    const config = {
        light: lightTheme,
        dark: darkTheme
    };
    const { message, notification, dialog, loadingBar } = createDiscreteApi(
        ['message', 'dialog', 'notification', 'loadingBar'],
        {
            configProviderProps: config[theme]
        }
    );
    return {
        message,
        notification,
        dialog,
        loadingBar
    };
};
